import 'package:dio/dio.dart';

class DioConfig {
  static BaseOptions get baseOptions => BaseOptions(
        baseUrl: "https://nestapi.taoqilin.cn/api",
        connectTimeout: const Duration(seconds: 5), // 连接服务器超时时间，单位是秒.
        sendTimeout: const Duration(seconds: 3), // 发送超时时间，单位是秒.
        receiveTimeout: const Duration(seconds: 3), // 接收超时时间，单位是秒.
      );
}

class OtherDioConfig {
  static BaseOptions get baseOptions => BaseOptions(
        baseUrl: "",
        connectTimeout: const Duration(seconds: 5), // 连接服务器超时时间，单位是秒.
        sendTimeout: const Duration(seconds: 3), // 发送超时时间，单位是秒.
        receiveTimeout: const Duration(seconds: 3), // 接收超时时间，单位是秒.
      );
}
